$(document).ready(function(){
/*	var organId = $('#id').val();
	organTree(organId);*/
	drawer();
});
/*function organTree(organId) {
	$('#organTree').tree({
		animate : true,
		lines : true,
	    idField: 'id',
	    checkbox:true,
		url : ctx + "/tree/organ?id=" + organId,	
		onLoadSuccess : function(node, data) {
			var node = $('#organTree').tree('find', organId);
			$('#organTree').tree('select', node.target);
		},
		onSelect : function(node) {
			//$("#id").val(node.id);
			//search(node.id);
		}
	});
}*/
function drawer(){
	$.ajax({
	        url : ctx+"/drawer/findByParentCode",
  	        data : {pcode:1018000000000000},
  	        dataType : 'json',
  	        type : 'post',
  	        success : function (data) {
  	        	if(!showMsg(data)){
  					return;
  				}
  					$('#type').combobox({ 
  						valueField:'id',
	                    textField:'text',
	                    data:data,
	                    panelHeight:'auto'
  					});
  	    }}
			
	);
}